package com.supreme.secretserver.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@ComponentScan(value = {"com.supreme.commonboot"})
public class ExternalConfig {

    @Value("${secret-server.modulePath}")
    private String modulePath;

    @Value("${supreme.secret.username}")
    private String username;

    @Value("${supreme.secret.password}")
    private String password;

    @PostConstruct
    public void initExternalConfig() {
        System.out.printf("[modulePath = %s] [username = %s] [password = %s]\n", modulePath, username, password);
    }
}
